package day02;

/**
 * @author yzg
 * @desc TODO
 * @date 2025/4/8
 */
public class Test01 {
    public static void main(String[] args) {
        int number = 123;
        int unitsDigit = number % 10;
        int tensDigit = (number / 10) % 10;
        int hundredsDigit = number / 100;
        System.out.println(number + "的个位是" + unitsDigit + ",十位是"+ tensDigit + ",百位是" + hundredsDigit);

    }
}
